package com.ex.controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;

//控制器类
@Controller
public class HelloController {

    //请求映射
    @RequestMapping(path="/hello")
    public  String sayHello(){
        System.out.println("Hello springMVC");
        return  "success";
    }
}
